﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace XenoStudio
{
    public partial class MessageViewer : UserControl
    {
        public MessageViewer()
        {
            InitializeComponent();
        }

        private void MessageViewer_Resize(object sender, EventArgs e)
        {
            MessageArea.Height = this.Height - 25;
        }
        public void LogMsg(string msg, object from)
        {
            MessageArea.Text += "[" + from.ToString() + "]:" + msg + "\n";

        }
        public void Sep()
        {
            MessageArea.Text += "\n";
        }
    }
}
